import numpy as np

arr1=np.arange(0,4)
print(arr1)

arr2=np.arange(1,10,2)
print(arr2)

arr3=np.arange(0,1,0.2)
print(arr3)

arr4=np.arange(5,0,-1)
print(arr4)

arr5=np.linspace(2,8,endpoint=False,retstep=True, num=60)
print(arr5)

arr6=np.linspace(1,2,endpoint=False,retstep=True, num=180)
print(arr6)

# 区间为2-8左闭右开数量为5底位2
arr7=np.logspace(2,8,5,endpoint=False,base=2)
print(arr7)